Crate gfx_core

Source
Expand description

Low-level graphics abstraction for Rust. Mostly operates on data, not types. Designed for use by libraries and higher-level abstractions only.

Re-exports§

Modules§

  • Memory buffers
  • Command Buffer device interface
  • Dummy backend implementation to test the code for compile errors outside of the graphics development environment.
  • Resource factory
  • Universal format specification. Applicable to textures, views, and vertex buffers.
  • Resource handles
  • Memory mapping
  • Types to describe the properties of memory allocated for gfx resources.
  • Raw Pipeline State Objects
  • Shader handling.
  • Fixed-function hardware state.
  • Render target specification.
  • Texture creation and modification.

Structs§

Enums§

  • A type of each index value in the slice’s index buffer
  • Describes what geometric primitives are created from vertex data.
  • A complete set of shaders to link a program. TODO: TransformFeedback

Constants§

Traits§

  • Represents a physical or virtual device, which is capable of running the backend.
  • Dummy trait for command queues. CommandBuffers will be later submitted to command queues instead of the device.
  • A Device is responsible for submitting CommandBuffers to the GPU.
  • QueueFamily denotes a group of command queues provided by the backend with the same properties/type.
  • Different types of a specific API.
  • A Surface abstracts the surface of a native window, which will be presented
  • The SwapChain is the backend representation of the surface. It consists of multiple buffers, which will be presented on the surface.

Type Aliases§